exports.getApplicationDetail = function(req,res){

    var restfulParams = req.routeInfo.restfulParams;

    var resultData = {};

    //获取应用基本信息
    function getApplicationBaseInfo(cb){

        R.SEND_HTTP(
            req,
            res,
            {
                url    : CORE_APIConfig.coreAPI.easydCloudMemberApplicationSearch.Request_Api_Url + "/cma_id/"+restfulParams.appid,  
                method : 'POST'
            },
            function (data) {

                resultData.applicationDetail = data.result.data[0];
                
                cb();

            }
        )
    }

    //根据应用类型获取配额相关信息
    function getApplicationQuota(cb){

        R.SEND_HTTP(
            req,
            res,
            {
                url    : CORE_APIConfig.coreAPI.easydCloudCmsApplicationQuotaSearch.Request_Api_Url + "/ccaq_cmaid/"+restfulParams.appid,  
                method : 'POST'
            },
            function (data) {

                resultData.applicationQuota = data.result.data[0];
                
                cb();

            }
        )

    }

    

    F.Serial([
        getApplicationBaseInfo,
        getApplicationQuota
    ],() => {
        RES.successResponse(res,resultData);
    })

}